package com.huawei.appmarket.support.storage;

import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.net.Uri;
import androidx.annotation.NonNull;
import o.ContentManager;

public class DbProvider extends ContentProvider {
    public static final String ˊ = (ContentManager.getInstant().getContext().getPackageName() + ".appinfos");
    private static final UriMatcher ˋ = new UriMatcher(-1);

    static {
        ˋ.addURI(ˊ, "item/12", 12);
        ˋ.addURI(ˊ, "item/17", 17);
    }

    /* JADX WARNING: inconsistent code. */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public android.database.Cursor query(@androidx.annotation.NonNull android.net.Uri r6, java.lang.String[] r7, java.lang.String r8, java.lang.String[] r9, java.lang.String r10) {
        /*
        r5 = this;
        r0 = 0;
        r1 = ˋ;	 Catch:{ IllegalArgumentException -> 0x0042 }
        r1 = r1.match(r6);	 Catch:{ IllegalArgumentException -> 0x0042 }
        r2 = o.ccx.ॱ();	 Catch:{ IllegalArgumentException -> 0x0042 }
        if (r2 != 0) goto L_0x0026;
    L_0x000d:
        r2 = "provider->DbProvider";
        r3 = new java.lang.StringBuilder;	 Catch:{ IllegalArgumentException -> 0x0042 }
        r3.<init>();	 Catch:{ IllegalArgumentException -> 0x0042 }
        r4 = "query blocked by protocol, code = ";
        r3 = r3.append(r4);	 Catch:{ IllegalArgumentException -> 0x0042 }
        r1 = r3.append(r1);	 Catch:{ IllegalArgumentException -> 0x0042 }
        r1 = r1.toString();	 Catch:{ IllegalArgumentException -> 0x0042 }
        o.dna.ˋ(r2, r1);	 Catch:{ IllegalArgumentException -> 0x0042 }
    L_0x0025:
        return r0;
    L_0x0026:
        switch(r1) {
            case 12: goto L_0x0060;
            case 17: goto L_0x006c;
            default: goto L_0x0029;
        };	 Catch:{ IllegalArgumentException -> 0x0042 }
    L_0x0029:
        r1 = new java.lang.IllegalArgumentException;	 Catch:{ IllegalArgumentException -> 0x0042 }
        r2 = new java.lang.StringBuilder;	 Catch:{ IllegalArgumentException -> 0x0042 }
        r2.<init>();	 Catch:{ IllegalArgumentException -> 0x0042 }
        r3 = "Unknown URI";
        r2 = r2.append(r3);	 Catch:{ IllegalArgumentException -> 0x0042 }
        r2 = r2.append(r6);	 Catch:{ IllegalArgumentException -> 0x0042 }
        r2 = r2.toString();	 Catch:{ IllegalArgumentException -> 0x0042 }
        r1.<init>(r2);	 Catch:{ IllegalArgumentException -> 0x0042 }
        throw r1;	 Catch:{ IllegalArgumentException -> 0x0042 }
    L_0x0042:
        r1 = move-exception;
        r2 = "provider->DbProvider";
        r3 = new java.lang.StringBuilder;
        r3.<init>();
        r4 = "query(...)";
        r3 = r3.append(r4);
        r1 = r1.toString();
        r1 = r3.append(r1);
        r1 = r1.toString();
        o.dna.ˊ(r2, r1);
        goto L_0x0025;
    L_0x0060:
        r1 = o.dss.ॱ();	 Catch:{ IllegalArgumentException -> 0x0042 }
        r2 = r5.getContext();	 Catch:{ IllegalArgumentException -> 0x0042 }
        r1.ॱ(r2);	 Catch:{ IllegalArgumentException -> 0x0042 }
        goto L_0x0025;
    L_0x006c:
        r1 = o.dss.ॱ();	 Catch:{ IllegalArgumentException -> 0x0042 }
        r0 = r1.ˏॱ();	 Catch:{ IllegalArgumentException -> 0x0042 }
        goto L_0x0025;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.huawei.appmarket.support.storage.DbProvider.query(android.net.Uri, java.lang.String[], java.lang.String, java.lang.String[], java.lang.String):android.database.Cursor");
    }

    public int update(@NonNull Uri uri, ContentValues contentValues, String str, String[] strArr) {
        return 0;
    }

    public Uri insert(@NonNull Uri uri, ContentValues contentValues) {
        return null;
    }

    public int delete(@NonNull Uri uri, String str, String[] strArr) {
        return 0;
    }

    public boolean onCreate() {
        return true;
    }

    public String getType(@NonNull Uri uri) {
        return null;
    }
}
